import cv2
import paddlehub as hub

def Face_Num(file_path):
    module = hub.Module(name="pyramidbox_lite_mobile_mask")
    imgs = [cv2.imread(str(file_path).strip())]
    results = module.face_detection(images=imgs, use_multi_scale=True, shrink=0.8, visualization=False)
    return results
    # file_name = str(len(results[0]['data']))+".jpg"
